<?php
/**
 * Classic pagination style
 * 
 * @preview  ‹ First  < 1 2 3 >  Last ›
 */
?>

<div class="paging">
    <ul>
      <?php /*if ($this->first_page): ?>
        <li><a href="<?php echo $this->url(array('page' => 1)); ?>">&lsaquo;&nbsp;First</a></li>
      <?php endif*/ ?>
    
      <?php if ($this->previous_page): ?>
        <li><a href="<?php echo $this->url(array('page' => $this->previous_page)); ?>">Trang trước</a></li>
      <?php endif ?>
    
      <?php for ($i = 1; $i <= $this->total_pages; $i++): ?>
    
        <?php if ($i == $this->current_page): ?>
          <li><span><?php echo $i ?></span></li>
        <?php else: ?>
          <li><a href="<?php echo $this->url(array('page' => $i));?>"><?php echo $i?></a></li>
        <?php endif ?>
    
      <?php endfor ?>
    
      <?php if ($this->next_page): ?>
        <li><a href="<?php echo $this->url(array('page' => $this->next_page)); ?>">Trang kế tiếp</a></li>
      <?php endif ?>
      
      <?php /*if ($this->last_page): ?>
        <li><a href="<?php echo $this->url(array('page' => $this->last_page)); ?>">Last&nbsp;&rsaquo;</a></li>
      <?php endif*/ ?>
    </ul>
</div>